//
//  ViedoViewController.m
//  BSLCar
//
//  Created by 孙卓 on 15/5/28.
//  Copyright (c) 2015年 lyz. All rights reserved.
//

#import "ViedoViewController.h"

@interface ViedoViewController () <UIWebViewDelegate>

@end

@implementation ViedoViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    UIBarButtonItem *item = [[UIBarButtonItem alloc] init];
    item.title = @"返回";
    self.navigationItem.backBarButtonItem = item;
    [item release];
    
    self.navigationItem.title = @"精彩视频";
    
    self.view.backgroundColor = [UIColor grayColor];
    webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height - 64)];
    NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"http://v.auto.163.com"]];
    webView.scalesPageToFit = YES;
    [self.view addSubview:webView]; 
    [webView loadRequest:request];
    [webView release];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
